package ran.friend.service.user;

import jakarta.mail.MessagingException;
import ran.friend.domain.user.dto.UserCodeDTO;
import ran.entity.Result;
import ran.friend.domain.user.dto.UserEditDTO;
import ran.friend.domain.user.vo.UserVO;
import ran.vo.LoginUserVO;

import java.io.UnsupportedEncodingException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-11-03
 * Time: 10:50
 */
public interface IUserService {
    boolean sendCode(UserCodeDTO codeDTO) throws MessagingException, UnsupportedEncodingException;

    String codeLogin(String mail, String code);

    boolean logout(String token);

    Result<LoginUserVO> info(String token);

    UserVO detail();

    int edit(UserEditDTO userEditDTO);

    int updateHeadImage(String headImage);
}
